#include <iostream>
#include <string>
using namespace std;
class Mammal{
public:Mammal(int le,string col):leg(le),color(col){cout<<"Mammal constructor"<<endl;}
    ~Mammal(){cout<<"Mammal delete"<<endl;}
private:int leg;
        string color;
};
class Dog:public Mammal{
public:Dog(int le,string col,string type):Mammal(le,col),type(type){cout<<"Dog constructor"<<endl;}
       ~Dog(){cout<<"Dog delete"<<endl;}
private:string type;
};
int main(){
	Dog d(2,"red","zzz");
	return 0;
}
